import request from '@/utils/request'

// 查询规则举报列表
export function listAppRuleReport(query) {
  return request({
    url: '/yun/appRuleReport/webList',
    method: 'get',
    params: query
  })
}
// 查询举报数列表
export function getAppRuleReportData(query) {
  return request({
    url: '/yun/appRuleReport/list',
    method: 'get',
    params: query
  })
}

// 查询规则举报详细
export function getAppRuleReport(id) {
  return request({
    url: '/yun/appRuleReport/' + id,
    method: 'get'
  })
}

// 新增规则举报
export function addAppRuleReport(data) {
  return request({
    url: '/yun/appRuleReport',
    method: 'post',
    data: data
  })
}

// 修改规则举报
export function updateAppRuleReport(data) {
  return request({
    url: '/yun/appRuleReport',
    method: 'put',
    data: data
  })
}

// 删除规则举报
export function delAppRuleReport(id) {
  return request({
    url: '/yun/appRuleReport/' + id,
    method: 'delete'
  })
}
// 删除rule
export function delAppRule(id) {
  return request({
    url: '/yun/appRule/' + id,
    method: 'delete'
  })
}
